package com.jiai.cloud.feign;

import com.jiai.cloud.entity.TApplication;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;



@FeignClient("authentication")
public interface ApplicationAPI {


    //增
    @RequestMapping(value="/api/v1/application/addApplication")
    Object addApplication(@RequestBody TApplication tApplication);

    @RequestMapping("/api/v1/application/del/{id}")
    Object deleteId(@PathVariable("id") Integer id);

    @RequestMapping("/api/v1/application/edit")
    Object insertOrUpdate(@RequestBody TApplication tApplication);

    @RequestMapping("/api/v1/application/findById/{id}")
    Object selectById(@PathVariable("id") Integer id);

    @RequestMapping(value = "/api/v1/application/findByAll/{page}")
    Object selectPage(@PathVariable("page") Integer page);
}